#ifndef TILE_H
#define TILE_H


#include <hge.h>
#include <hgefont.h>

#include <windows.h>





class tile {
private:
	void  approxTilePosition(int appValue);
public:
 tile(bool _ground ,int tilePositionX,int tilePositionY,HTEXTURE texture,int _tile_number,int _TileSetNumber,HGE * _hge);

hgeSprite * sprite;
hgeSprite * sprite2;
hgeRect * RectTile;
HTEXTURE  texture2;
int xSprite,ySprite;
int tile_number;
bool removed;
bool ground;
int TileSetNumber;
int i,j;
bool grid;
bool visible;
bool right_button;
int tilePositionX,tilePositionY;
void addSoundToTile();
void removeSoundFromTile();
void checkVisibility(int _h2, int _v2);
void drawTile(int _h,int _v);
void moveTile(int tileNumber,int PositionX,int PositionY);
void rotateTile();
void changeTileSize();
//void saveTileToArray();
void saveTileToFile();


int selectTileOnField(int PositionX, int PositionY,int number_of_tiles);

};

#endif